Skip to content

Conversation

@seanmuth
Copy link
Contributor

Fix missing ti_failure metrics in Airflow3 Task SDK

Related PR: #55322

Adds ti_failure stats to task SDK's _handle_current_task_failed() method, in the same way ti_successes were added to _handle_current_task_success()

@amoghrajesh amoghrajesh changed the title emit ti failures stats Record missing ti_failure metrics for tasks in Airflow 3 Dec 23, 2025
@potiuk
Copy link
Member

potiuk commented Dec 23, 2025

One space misaligned :( . prek to the rescue

@seanmuth
Copy link
Contributor Author

Whoops @potiuk ! Totally forgot I nuked my local dev env at some point during the year and forgot to setup prek again, I knew something was missing on my end. Fixed, should be good now.

@potiuk potiuk force-pushed the add-ti-failures-task-sdk branch from 55b738c to 34c8e26 Compare December 31, 2025 00:28
@amoghrajesh
Copy link
Contributor

Can we target this for 3.1.6?

@potiuk potiuk added this to the Airflow 3.1.6 milestone Dec 31, 2025
@potiuk potiuk added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Dec 31, 2025
@potiuk potiuk merged commit 98d5976 into apache:main Dec 31, 2025
99 checks passed
@potiuk
Copy link
Member

potiuk commented Dec 31, 2025

Can we target this for 3.1.6?

Let's see :)

github-actions bot pushed a commit that referenced this pull request Dec 31, 2025
#59731)

* emit ti failures stats

* fix whitespace, comment
(cherry picked from commit 98d5976)

Co-authored-by: Sean Muth <seanmuth@users.noreply.github.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

potiuk pushed a commit that referenced this pull request Dec 31, 2025
#59731) (#59964)

* emit ti failures stats

* fix whitespace, comment
(cherry picked from commit 98d5976)

Co-authored-by: Sean Muth <seanmuth@users.noreply.github.com>
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
)

* emit ti failures stats

* fix whitespace, comment
ephraimbuddy pushed a commit that referenced this pull request Jan 6, 2026
#59731) (#59964)

* emit ti failures stats

* fix whitespace, comment
(cherry picked from commit 98d5976)

Co-authored-by: Sean Muth <seanmuth@users.noreply.github.com>
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
)

* emit ti failures stats

* fix whitespace, comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants